s='asdfghjkasdfghjk'
print(s[0:5])
print(s[1:4])
print(s[-11:-8])#头下标要比尾下标小
print(s[-8:-3])
print(s[8:10])
print(s[5:12])
#复杂切片
print(s[0:5:1])
print(s[3:12:2])
print(s[4::-1])
print(s[::-1])#求字符串逆序的好方法
